package com.qd.panda.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 油号价格
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_car_park_gas_station_price")
public class CarParkGasStationPrice extends Model<CarParkGasStationPrice> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 油号
     */
    @TableField("octane_number")
    private Integer octaneNumber;
    /**
     * 价格,国家挂牌价
     */
    @TableField("price")
    private BigDecimal price;
    /**
     * 折扣
     */
    @TableField("customer_discount")
    private Double customerDiscount;
    /**
     * 停车场标识
     */
    @TableField("p_id")
    private String pId;
    /**
     * 优惠价
     */
    @TableField("customer_price")
    private BigDecimal customerPrice;
    /**
     * 油站价格
     */
    @TableField("station_price")
    private BigDecimal stationPrice;
    /**
     * 枪号,用逗号隔开
     */
    @TableField("nozzle_numbers")
    private String nozzleNumbers;

    public void freeData() {
        this.id = null;
        this.octaneNumber = null;
        this.price = null;
        this.customerDiscount = null;
        this.pId = null;
        this.customerPrice = null;
        this.nozzleNumbers = null;
        this.stationPrice = null;
    }

}
